package com.syher.mail;

import com.syher.mail.core.server.reader.MailReader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration
@ComponentScan(basePackages = {
        "com.syher.mail.core",
        "com.syher.mail.service"
})
public class SpringBootMailApplication implements CommandLineRunner {

    @Autowired
    MailReader reader;

    public static void main(String[] args) {
        SpringApplication.run(SpringBootMailApplication.class, args);
    }

    @Override
    public void run(String... strings) throws Exception {
        //reader.start();
    }
}
